package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住院申请对象 admission
 * 
 * @author 墨白
 * @date 2024-08-10
 */
public class Admission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 住院申请ID */
    @Excel(name = "住院申请ID")
    private Long admissionId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 住院日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "住院日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date admissionDate;

    /** 出院日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出院日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dischargeDate;

    /** 申请状态 */
    @Excel(name = "申请状态")
    private String status;

    public void setAdmissionId(Long admissionId) 
    {
        this.admissionId = admissionId;
    }

    public Long getAdmissionId() 
    {
        return admissionId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setAdmissionDate(Date admissionDate) 
    {
        this.admissionDate = admissionDate;
    }

    public Date getAdmissionDate() 
    {
        return admissionDate;
    }
    public void setDischargeDate(Date dischargeDate) 
    {
        this.dischargeDate = dischargeDate;
    }

    public Date getDischargeDate() 
    {
        return dischargeDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("admissionId", getAdmissionId())
            .append("patientName", getPatientName())
            .append("admissionDate", getAdmissionDate())
            .append("dischargeDate", getDischargeDate())
            .append("status", getStatus())
            .toString();
    }
}
